package cn.bupt.adt.service;

import java.util.Date;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Service;

import cn.bupt.adt.entity.autogenerate.DoctorAppUser;
import cn.bupt.adt.util.NetDataAccessUtil;

@Service
public interface IDoctorAppUserService {
	public DoctorAppUser getDoctorByAccount(String account);

	public void updateLoginTimeById(Integer id, Date loginTime);

	public DoctorAppUser checkInviteCode(String invitaCode);

	public boolean addDoctorAppUser(DoctorAppUser user);

	public DoctorAppUser getDoctorById(Integer userId);

	public boolean changePasswd(DoctorAppUser doc, String newPasswd);

	public void updateDoctorAppuser(DoctorAppUser doc);

//	public DoctorView getDoctorViewById(Integer userId);

	public boolean addDoctorAppUser(DoctorAppUser user, int[] operationTypesId, HttpServletRequest request);

	public void sendSmsForResetPasswd(String phone, NetDataAccessUtil nau);

}
